package cn.hongwei.pojo;

import org.springframework.beans.factory.SmartFactoryBean;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
public class PersonFactory implements SmartFactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }

    @Override
    public boolean isEagerInit() {
        return true;
    }
}
